﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BobcatWiiLib
{
    public partial class CalibrationTarget : UserControl
    {
        public CalibrationTarget()
        {
            InitializeComponent();
        }

        /// <summary>
        /// We draw a target that you can click to calibrate the Wiimote IR.
        /// </summary>
        private void CalibrationTarget_Paint(object sender, PaintEventArgs e)
        {
            // The target is a circle with cross-hairs inside it...
            Graphics g = e.Graphics;

            g.DrawEllipse(Pens.Blue, 0, 0, 20, 20);
            g.DrawLine(Pens.Blue, 10, 0, 10, 20);
            g.DrawLine(Pens.Blue, 0, 10, 20, 10);
        }
    }
}
